import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

/**
 * compnents
 */
import carrier from './components/aaanewApp/components/defualtUnit/carrier/carrier.vue';

/**
 * directives
 */
import { initvd } from './testComps/vDirective/dragEl/vdrag';

createApp(App)
  .component('carrier', carrier)
  .use(store)
  .use(router)
  .directive('drag', {
    mounted(el) {
      //   console.log(el, bind);
      initvd(el);
    },
  })
  .mount('#app');

//   指令 位 true 是 标识 需要更新
window.updataImp = { data: [] };
window.updataInfo = function a(str) {
  let ind = window.updataImp['data'].indexOf(str);
  if (ind > -1) {
    return window.updataImp[str];
  }
  return false;
};
